<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>

<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="message.lable.drugqualityspecSeeStd"/></title>
    <%@ include file="/WEB-INF/component/commonCSS.jsp"%>
    <!--[if lt IE 9]>
        <script src="${ctx}/lib/js/html5shiv.min.js"></script>
        <script src="${ctx}/lib/js/respond.min.js"></script>
    <![endif]-->
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
                            
    <section class="content-header">
        <h1>零采购药品统计</h1>
        <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
                <li><a href="#">交易</a></li>
                <li><a href="#">统计查询</a></li>
                <li><a href="#">零采购药品统计</a></li>
        </ol>
    </section>
        
    <section class="content">
        <div class=" box box-success">
            <div class="box-body">
             <form  id="form" method="post">
                <div class="box-body">
	               <div class="input">
	                    <div class="textalign1"><spring:message code="message.listForm.tongYongMing"/><spring:message code="message.yanZheng.maoHao"/></div>
	                    <div class="boxinput">
	                        <input type="text" class="textinput" id="name" name="name" placeholder="<spring:message code="message.listForm.tongYongMing"/>" />
	                    </div>
	                    <div class="textalign"><spring:message code="message.listForm.ShengChanQiYe"/><spring:message code="message.yanZheng.maoHao"/></div>
	                    <div class="boxinput">
	                        <input type="text" class="textinput" id="totalAmount" name="totalAmount" placeholder="<spring:message code="message.listForm.ShengChanQiYe"/>" />
	                    </div>
	                    <div class="textalign"><spring:message code="message.listForm.ZhongBiaoQiYe"/><spring:message code="message.yanZheng.maoHao"/></div>
	                    <div class="boxinput">
	                        <input type="text" class="textinput" id="delAmount" name="delAmount" placeholder="<spring:message code="message.listForm.ZhongBiaoQiYe"/>" />
	                    </div>
	               </div>
	               <div class="input">
	                    <div class="textalign1"><spring:message code="message.listForm.XiangMuMingCheng"/><spring:message code="message.yanZheng.maoHao"/></div>
	                    <div class="boxinput">
	                        <input type="text" class="textinput" id="retAmount" name="retAmount" placeholder="<spring:message code="message.listForm.XiangMuMingCheng"/>" />
	                    </div>
	                  
	                    <div class="textalign">
	                       <button type="button" onclick="gridSerch()" class="btn btn-success btn-sm" id="selectDicCompType"><spring:message code="message.button.seachSpacing"/></button>
	                    </div>
	               </div>
            </div>
            </form>
            </div>
          </div>
        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
    </section>
      <%@ include file="/WEB-INF/component/commonJS.jsp"%>
    <script type="text/javascript">
        $(function () {
            
            $("#gridlist").jqGrid({
                url: "",
                mtype: "GET",
                datatype: "local",
                autowidth: true,
                height: 310,
                colNames: [
                        '通用名',
                        '剂型',
                        '规格',
                        '生产企业', 
                        '中标企业', 
                        '项目名称',
                        '采购价',
                        '采购率'
                ],
                colModel: [
                        { name: 'name', width: 95, align:"center", sortable: false},
                        { name: 'area', width: 60, align:"center", sortable: false},
                        { name: 'date', width: 60, align:"center", sortable: false},
                        { name: 'totalAmount', width: 100, align:"left", sortable: false},
                        { name: 'delAmount', width: 100, align:"left", sortable: false},
                        { name: 'retAmount', width: 100, align:"left", sortable: false},
                        { name: 'delRatio', width: 60, align:"center", sortable: false},
                        { name: 'retRatio', width: 60, align:"center", sortable: false}
                           
                ],
                rowNum: 20,
                rowList: [10, 20, 50,100],
                rownumbers: true,
                pager: "#gridpage",
                multiselect: false, 
                viewrecords: true,
                caption: "零采购药品统计",
                gridComplete:function(){
                    autoRNWidth("gridlist");

                },
                jsonReader: {
                     repeatitems: false,
                    id: "qualitySpecId"
                },
                
            });
            $("#gridlist").jqGrid('navGrid', '#gridpage', { add: false, edit: false, del: false, search: false, refresh: false });
            $(window).trigger("resize");
            $("#gridlist")[0].addJSONData(
            {
            "total":1,
            "page":1,
            "records":18,
            "rows":[
            { "number":"01","name":" 参苏胶囊","area":"胶囊剂","date":"0.45g", "totalAmount":"贵州信邦制药股份有限公司", "delAmount":"贵州信邦制药股份有限公司", "retAmount":"省内企业区域项目", "delRatio":"22.28", "retRatio":"0%"},
            { "number":"02","name":"布洛芬胶囊","area":"胶囊剂","date":"0.2g", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"1.02", "retRatio":"0%"},
            { "number":"03","name":"润燥止痒胶囊","area":"胶囊剂","date":"0.5g", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"20.04", "retRatio":"0%"},
            { "number":"04","name":"盐酸地芬尼多片","area":"糖衣片","date":"25mg", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"1.80", "retRatio":"0%"},
            { "number":"05","name":"异烟肼片","area":"糖衣片","date":"	0.1g", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"14.50", "retRatio":"0%"},
            { "number":"06","name":"复方牙痛酊","area":"酊剂","date":"10ml", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"23.50", "retRatio":"0%"},
            { "number":"07","name":"枣仁安神胶囊","area":"胶囊剂","date":"0.45g", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"35.75", "retRatio":"0%"},
            { "number":"08","name":"仙灵骨葆胶囊","area":"胶囊剂","date":"0.5g", "totalAmount":"贵州同济堂制药有限公司", "delAmount":"贵州同济堂制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"8.00", "retRatio":"0%"},
            { "number":"09","name":"茶碱缓释胶囊(Ⅱ)","area":"缓释胶囊","date":"0.1g", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"0.23", "retRatio":"0%"},
            { "number":"10","name":"硫酸镁注射液","area":"注射剂","date":"	10ml:2.5g", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"0.50", "retRatio":"0%"},
            { "number":"11","name":"盐酸消旋山莨菪碱注射液","area":"注射剂","date":"	1ml:10mg", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"3.15", "retRatio":"0%"},
            { "number":"12","name":"消旋山莨菪碱片","area":"普通片","date":"1ml:10mg", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"0.14", "retRatio":"0%"},
            { "number":"13","name":"盐酸雷尼替丁注射液","area":"注射剂","date":"2ml:50mg", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"7.80", "retRatio":"0%"},
            { "number":"14","name":"螺内酯片","area":"普通片","date":"20mg", "totalAmount":"杭州民生药业有限公司", "delAmount":"杭州民生药业有限公司", "retAmount":"省内企业区域项目", "delRatio":"0.95", "retRatio":"0%"},
            { "number":"15","name":"盐酸左氧氟沙星胶囊","area":"胶囊剂","date":"0.1g", "totalAmount":"浙江普洛康裕制药有限公司", "delAmount":"浙江普洛康裕制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"9.10", "retRatio":"0%"},
            { "number":"16","name":"脉络宁注射液","area":"注射剂","date":"10ml", "totalAmount":"金陵药业股份有限公司南京金陵制药厂", "delAmount":"	金陵药业股份有限公司南京金陵制药厂", "retAmount":"省内企业区域项目", "delRatio":"9.10", "retRatio":"0%"},
            { "number":"17","name":"八珍益母胶囊","area":"胶囊剂","date":"0.28g", "totalAmount":"江西南昌桑海制药厂", "delAmount":"	江西南昌桑海制药厂", "retAmount":"省内企业区域项目", "delRatio":"22.75", "retRatio":"0%"},
            { "number":"18","name":"橘红颗粒","area":"颗粒剂","date":"11g（相当于原生药7g）", "totalAmount":"江西民康制药有限公司", "delAmount":"江西民康制药有限公司", "retAmount":"省内企业区域项目", "delRatio":"9.46", "retRatio":"0%"}
            ]
            }
            );
        });
        function search(page) {
            var data =formatForm("form");
            $("#gridlist").jqGrid('setGridParam',{  
                datatype:'json',
                postData:data,
                page : (page || 1)
            }).trigger("reloadGrid"); //重新载入  
        }
        
        function toPsYearAnaByTime(){
            window.location.href="${ctx}/psAnaDruginfo/toPsYearAnaByTime.html"; 
        }
        
        function toPsSeaAnaByTime(){
            window.location.href="${ctx}/psAnaDruginfo/toPsSeaAnaByTime.html"; 
        }
        
        function toPsAnaByTime(){
            window.location.href="${ctx}/psAnaDruginfo/toPsAnaByTime.html"; 
        }
    </script>
</body>
</html> 
                          
                  
                  